createCustomEvent

public abstract CustomEvent createCustomEvent(EventType eventType, CustomEventParams params)

Creates and returns a new CustomEvent object with the given eventType and params.

Since

8.0.0

Parameters

eventType

an EventType object representing a type of a DOM event supported by engine

params

an CustomEventParams object representing DOM event properties (e.g. bubbles, cancellable) as well as event's payload.

Throws

when the document is closed